<div class="layui-form-item">
    <label class="layui-form-label" style="width: {{ $width['label'] }}px;">{{ $label }}</label>
    <div class="layui-input-inline" style="width: {{ $width['field'] }}px;">
        <input name="{{ $name }}" hidden readonly value="0">
        <input type="checkbox" name="{{ $name }}" lay-skin="switch" lay-text="开启|关闭" value="1" @if($value == 1) checked @endif>
        @include('admin.partials.validate_errors', compact('name'))
    </div>
</div>